<div onClick="javascript:detenerClick();" class="modal fade" id="eliminarContacto<?php echo $i ?>" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content" style="border-radius:0 !important;position:relative !important;">
            <div class="aspa" data-dismiss="modal" aria-hidden="true" style="right:-10px;top:-10px;" title="Cerrar">
                <i class="glyphicon glyphicon-remove"></i>
            </div>
            <div class="modal-header" style="background-color:red;text-align:center">
                ¿Quieres elminar a <?php echo $contactos[$i]['nombre']." ".$contactos[$i]['apellidos']; ?> de tu Red de contactos?
            </div>
            <div class="modal-footer" style="padding:10px;text-align:center;border-top:0px">
                <form name="eliminarContacto<?php echo $i ?>" method="post" action="../logic/eliminarContacto.php">
                    <input type="hidden" value="<?php echo $contactos[$i]['idUsuario'] ?>" name="uid">
                    <input type="reset" class="btn btn-info boton" data-dismiss="modal" value="Cancelar"> 
                    <input type="submit" class="btn btn-danger boton" value="Eliminar"> 
                </form>
            </div>
        </div>
    </div>
</div>
<script>
    function detenerClick() {
        if (!e) var e = window.event;
        e.cancelBubble = true;
        if (e.stopPropagation) e.stopPropagation();
    }    
</script>